﻿<Window x:Class="Asdo.Sample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:s="clr-namespace:Asdo.Controls;assembly=AsdoLib" Style="{DynamicResource Window}"
        Title="MainWindow" Height="350" Width="525">
    <s:WindowSupporter Margin="6">
        <Border Margin="0,22,0,0" BorderBrush="{StaticResource brush-night-blue}" Background="{StaticResource brush-pale-gray}" BorderThickness="1">
    <Grid  >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                    <TabControl Margin="5" Name="tabs" s:SwipePanel.Moving="Moving" s:SwipePanel.Draging="Draging" AllowDrop="True" PreviewDragOver="TabsPreviewDragOver" PreviewDrop="TabsPreviewDrop" PreviewDragEnter="TabsPreviewDragEnter" MouseUp="TabsMouseUp">
                    <TabItem Header="123">123</TabItem>
                    <TabItem Header="1233">ass</TabItem>
                    <TabItem Header="1233">ass</TabItem>
                    <TabItem Header="1233">ass</TabItem>
                    <TabItem Header="1233">ass</TabItem>
                    <TabItem Header="1233">ass</TabItem>
                </TabControl>
            <ListBox Name="list" Grid.Column="1" s:SwipePanel.Moving="MovingS" Width="200" MouseMove="list_MouseMove" MouseEnter="list_MouseEnter" MouseLeave="list_MouseLeave">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <s:SwipePanel UseSwipePiont="True"></s:SwipePanel>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
                <ListBox.ItemContainerStyle>
                    <Style TargetType="ListBoxItem">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="ListBoxItem">
                                    <Border BorderThickness="1" BorderBrush="Black" Margin="2" CornerRadius="2" Background="{StaticResource brush-glass}">
                                        <StackPanel Orientation="Horizontal">
                                                <Ellipse s:SwipePanel.IsSwipePoint="True" Stroke="Black" Margin="2" Fill="{StaticResource brush-amber}" Width="15" Height="15"></Ellipse>
                                                 <ContentPresenter  Margin="2"/>
                                        </StackPanel>
                                    </Border>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                            <Style.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="Panel.ZIndex" Value="2"/>
                                    <Setter Property="FontWeight" Value="Bold"/>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                </ListBox.ItemContainerStyle>
                <ListBoxItem>123</ListBoxItem>
                <ListBoxItem>12345</ListBoxItem>
                <ListBoxItem>1234567</ListBoxItem>
                <ListBoxItem>123456789</ListBoxItem>
                <ListBoxItem>123456789AB</ListBoxItem>
            </ListBox>
            </Grid>
        </Border>
    </s:WindowSupporter>
</Window>
